#include "mainwindow.h"

#include <QApplication>

#include "qmainview.h"
#include "settings.h"
#include "configmanager.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    //MainWindow w;
    //w.show();
    //qmainview qmv;
    //qmv.show();

    settings sts;
    configmanager cofmanager;
    QString rootdir, workdir;
    if(!cofmanager.loadConfig(rootdir, workdir))
        sts.show();
    else sts.loadMain(rootdir, workdir);
    return a.exec();
}
